// history模式
import {
    createRouter,
    createWebHashHistory,
  } from 'vue-router'
  const routes = [
    // 路由的默认路径
    {
      path: '/',
      name: 'index1',
      component: () => import(/* @vite-ignore */ /* webpackChunkName: "Games-trunk" */ './views/admin/index/index1.vue')
    },
    {
      path: '/admin',
      name: 'index2',
      component: () => import(/* @vite-ignore */ /* webpackChunkName: "Games-trunk" */ './views/admin/index/index.vue')
    },
    {
      path: '/admin/login',
      name: 'login',
      component: () => import(/* @vite-ignore */ /* webpackChunkName: "Games-trunk" */ './views/admin/login/index.vue')
    },
  ]
  
  // 创建路由对象
  const router = createRouter({
    history: createWebHashHistory(),
    routes
  })
  export default router
  